<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; utf-8">
	<TITLE>Sistema de Monitoramento do Di&aacute;rio da Uni&atilde;o</TITLE>
	<META NAME="GENERATOR" CONTENT="BrOffice.org 3.0  (Win32)">
	<META NAME="CREATED" CONTENT="0;0">
	<META NAME="CHANGEDBY" CONTENT="Edviges Lima">
	<META NAME="CHANGED" CONTENT="20110709;21335900">
	<META NAME="Informa&ccedil;&otilde;es 2" CONTENT="">
	<META NAME="Informa&ccedil;&otilde;es 3" CONTENT="">
	<META NAME="Informa&ccedil;&otilde;es 4" CONTENT="">
	<META NAME="ProgId" CONTENT="FrontPage.Editor.Document">
	<META NAME="CHANGEDBY" CONTENT="Edviges Lima">
        <script type="text/javascript" src="jquery-1.6.2.min.js" ></script>
        <script type="text/javascript" src="dou.js" ></script>
        
</HEAD>
<BODY LANG="pt-BR" BGCOLOR="#ffffff" DIR="LTR">
<?php

echo "<script type='text/javascript'>";
if (!empty($_COOKIE["id"])) {
    
    echo '
        $(document).ready( function() {

                $("#add").click(addQuery);
                $("#log").click(doLogIn);
                $("#doquery").click(doQuery);
                updateQueries();
            })';
} else {
    
    echo '
            
            $(document).ready( function() {

                $("#add").click(addQuery);
                $("#log").click(doLogIn);
                $("#doquery").click(doQuery);
            })
            ';
}

echo "</script>";
?>
<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" STYLE="background: url(img/bluespeck.jpg) repeat scroll; page-break-before: always">
	<COL WIDTH="175*">
	<COL WIDTH="81*">
	<TR VALIGN="BOTTOM">
		<TD WIDTH="68%" HEIGHT="88">
			<P ALIGN="RIGHT"><FONT COLOR="#280099"><FONT FACE="Bernard MT Condensed, serif"><FONT SIZE="7" STYLE="font-size: 32pt"><B>Sistema
			de Monitoramento do Di&aacute;rio da Uni&atilde;o</B></FONT></FONT></FONT></P>
		</TD>
		<TD WIDTH="32%">
			<P ALIGN="RIGHT"><FONT COLOR="#0000ff"><IMG SRC="http://www.ufpb.br/pesquisa/imagem/UFPB.png" alt="Universidade Federal da Paraíba" ALIGN="BOTTOM" WIDTH="85" HEIGHT="79" BORDER="0">
						<IMG SRC="img/topright.png" alt="" ALIGN="BOTTOM" WIDTH="79" HEIGHT="75" BORDER="0"></FONT></P>
		</TD>
	</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" STYLE="background: url(img/bluebkg.jpg) repeat scroll">
	<COL WIDTH="256*">
	<TR>
		<TD WIDTH="100%" HEIGHT="19" VALIGN="TOP">
			<P ALIGN="CENTER"><BR>
			</P>
		</TD>
	</TR>
</TABLE>
<FORM NAME="Standard" ACTION="../021">
	<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
		<COL WIDTH="4*">
		<COL WIDTH="252*">
		<TR>
			<TD WIDTH="2%" VALIGN="TOP" STYLE="background: url(img/sidebkg.jpg) repeat scroll">
				<P><BR>
				</P>
			</TD>
			<TD WIDTH="98%">
				<P><BR><BR>
				</P>
				<P><FONT COLOR="#280099"><FONT FACE="Arial Black"><FONT SIZE=5>Bem-vindo</FONT></FONT></FONT></P>
				<P><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=3>Este &eacute;
				o sistema de Monitoramento do Di&aacute;rio Oficial da Uni&atilde;o
				(DOU). Foi criado na Disciplina Ordena&ccedil;&atilde;o e
				Recupera&ccedil;&atilde;o de Dados, do curso de Ci&ecirc;ncia da
				Computa&ccedil;&atilde;o/CCEN/DI/UFPB.</FONT></FONT></FONT></P>
				<P><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=4 STYLE="font-size: 15pt"><B>Como
				usar:</B></FONT></FONT></FONT></P>
				<P STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=3>&Eacute;
				bem f&aacute;cil:</FONT></FONT></FONT></P>
				<OL>
					<LI><P STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=3><I>Cadastre
					seu email;</I></FONT></FONT></FONT></P>
					<LI><P STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=3><I>Digite
					a express&atilde;o que deseja que o sistema monitore dentro do
					DOU;</I></FONT></FONT></FONT></P>
					<LI><P STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=3><I>Aguarde
					ser notificado! :)</I></FONT></FONT></FONT></P>
				</OL>
				<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="#78a0c0">
					<COL WIDTH=256*>
					<TR>
						<TD WIDTH=100% HEIGHT=19 VALIGN=TOP>
							<P ALIGN=LEFT><BR>
							</P>
						</TD>
					</TR>
				</TABLE>
				<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="#dce7ef">
					<COL WIDTH=256*>
					<TR>
						<TD WIDTH=100%>
							<P STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=4 STYLE="font-size: 15pt">Acesse
							sua conta</FONT></FONT></FONT></P>
							<P id="log_div">
                                                        <?php
                                                            if (empty($_COOKIE["id"])) {
                                                        ?>
                                                        <FONT COLOR="#280099"><FONT FACE="Arial, sans-serif"><FONT SIZE=4>Login:
							<INPUT TYPE=TEXT id="user" SIZE=19 MAXLENGTH=10 STYLE="width: 3.81cm; height: 0.61cm"><BR>Senha:
							<INPUT TYPE=PASSWORD id="pass" SIZE=19 MAXLENGTH=9 STYLE="width: 3.81cm; height: 0.61cm; font-family: 'Courier New', monospace; font-size: 10pt; background: #ffffff">
							<INPUT TYPE="button" id="log" VALUE="Login!" STYLE="width: 1.67cm; height: 0.93cm">
							<INPUT TYPE=RESET VALUE="Limpar" STYLE="width: 1.77cm; height: 0.93cm">
							</FONT></FONT></FONT>
                                                        <?php
                                                            } else {
                                                                
                                                                echo "<span style='font-face: Arial; color: #280099; font-size: 18px'> Usu&aacute;rio: " . $_COOKIE["user"] . " <a href='doLogOut.php'>Logout</a><br >Strings de busca<br ><div id='div_queries'></div>";
                                                            }
                                                        ?>
							</P>
							<P><BR>
							</P>
						</TD>
					</TR>
					<TR>
						<TD WIDTH=100%>
							<?php
                                                        
                                                            if (empty($_COOKIE["id"])) {
                                                        ?><P  id="conta_msg" STYLE="font-weight: normal"><FONT COLOR="#280099"><FONT FACE="Arial, sans-serif"><FONT SIZE=4 STYLE="font-size: 15pt">Ainda
							n&atilde;o possui conta? Cadastre-se!</FONT></FONT></FONT></P>
                                                        <?php } ?>
							<DIV ALIGN=LEFT>
                                                            <P STYLE="background: transparent"><FONT COLOR="#280099"><FONT FACE="Arial, sans-serif">
                                                            <?php
                                                                if (empty($_COOKIE["id"])) {                                                                    
                                                            ?>
                                                                <div id="conta"><FONT SIZE=4>Usu&aacute;rio:
								<INPUT TYPE=TEXT id="login" SIZE=19 STYLE="width: 3.81cm; height: 0.61cm"><BR>Senha:
								<INPUT TYPE=PASSWORD id="password" SIZE=19 MAXLENGTH=10 STYLE="width: 3.81cm; height: 0.61cm; font-family: 'Courier New', monospace; font-size: 10pt"><BR></div>
                                                                <?php } ?>
								O que voc&ecirc; quer buscar? <INPUT TYPE=TEXT id="query" SIZE=23 STYLE="width: 4.65cm; height: 0.81cm"><BR>Como
								deseja ser notificado?<BR>
                                                                <select id="ntype">
                                                                    <option value="1" selected>E-mail</option>
                                                                </select>
								</FONT></FONT></FONT><INPUT TYPE=TEXT id="nto" NAME="twitter" SIZE=32 STYLE="width: 6.49cm; height: 0.67cm"></P>
							</DIV>
							<DIV ALIGN=LEFT>
								<P STYLE="background: transparent"><FONT COLOR="#280099"><INPUT TYPE="button" id="add" VALUE="Cadastrar!" STYLE="width: 2.24cm; height: 0.93cm"></FONT>
                                                                    <img src="loading.gif" id="load" style="opacity:0;" >
                                                                </P>
							</DIV>
						</TD>
					</TR>
					<TR>
						<TD WIDTH=100%>
							<P><FONT COLOR="#280099"><FONT FACE="Arial"><FONT SIZE=4 STYLE="font-size: 15pt"><B>Buscar<FONT FACE="Arial, sans-serif"><FONT SIZE=4>:
							<INPUT TYPE=TEXT id="buscar" SIZE=33 STYLE="width: 6.61cm; height: 0.89cm"><INPUT TYPE=button id="doquery" VALUE="Buscar!" STYLE="width: 1.67cm; height: 0.93cm">
							<INPUT TYPE=RESET id="clean" VALUE="Limpar" STYLE="width: 1.77cm; height: 0.93cm">
							</FONT></FONT></B></FONT></FONT></FONT>
							</P>
                                                        <div id="res_query"></div>
						</TD>
					</TR>
				</TABLE>
				<P ALIGN=CENTER STYLE="background: #99ccff"><A NAME="internal-source-marker_0.3118166432250291"></A>
				<FONT COLOR="#000000">P&aacute;gina desenvolvida por:<BR>Edviges
				de F&aacute;tima Chaves de Lima<BR><SPAN STYLE="text-decoration: none"><FONT FACE="Times New Roman, serif"><FONT SIZE=3><SPAN STYLE="font-style: normal"><SPAN STYLE="font-weight: normal"><SPAN STYLE="background: transparent">Jos&eacute;
				Ivan Bezerra Vilarouca Filho</SPAN></SPAN></SPAN></FONT></FONT></SPAN></FONT></P>
			</TD>
		</TR>
	</TABLE>
</FORM>
<P><BR><BR>
</P>
</BODY>
</HTML>